package org.cpar.compiler.nodes;

import org.antlr.runtime.Token;
import org.antlr.runtime.tree.Tree;
import org.cpar.compiler.CPARNode;
import org.cpar.compiler.ICodeWriter;

public class SemaphoreStatement extends CPARNode {

	public SemaphoreStatement(Token nextToken) {
		super(nextToken);
	}

	@Override
	public void accept(ICodeWriter writer) {
		writer.visit(this);
	}

	public SemaphoreStatement(SemaphoreStatement s) {
		super(s);
	}

	@Override
	public Tree dupNode() {
		return new SemaphoreStatement(this);
	}

	public CPARNode getVarName() {
		return (CPARNode) getChild(0);
	}

	public CPARNode getArgument() {
		return (CPARNode) getChild(1);
	}

}
